package com.it.jnxy.Service;

import com.it.jnxy.Mapper.RegisterMapper;
import com.it.jnxy.Pojo.User2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RegisterServiceimpl implements RegisterService{
    @Autowired
    RegisterMapper registerMapper;
    public Integer Register(User2 ruser){

//        try {
//             registerMapper.setUserNameAndPassWord(ruser);
//        } catch (Exception e) {
//            return 0;
//
//        }
        return registerMapper.setUserNameAndPassWord(ruser);}

}
